package com.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.ibatis.type.Alias;

/*
 * 点赞表
 */
@Alias("liket")
public class LikeTable extends BaseEntity{
	private static final long serialVersionUID = 1L;


	public String   LikeId;//#编号
	public String   UserId;//#用户编号
	public String   LikeObjectId ;//#点赞对象编号
	public String  LikeName ;//#点赞表名
	public Date  LikeTime ;//#点赞时间
	public LikeTable() {
		super();
		// TODO Auto-generated constructor stub
	}
	public String getLikeId() {
		return LikeId;
	}
	public void setLikeId(String likeId) {
		LikeId = likeId;
	}
	public String getUserId() {
		return UserId;
	}
	public void setUserId(String userId) {
		UserId = userId;
	}
	public String getLikeObjectId() {
		return LikeObjectId;
	}
	public void setLikeObjectId(String likeObjectId) {
		LikeObjectId = likeObjectId;
	}
	public String getLikeName() {
		return LikeName;
	}
	public void setLikeName(String likeName) {
		LikeName = likeName;
	}
	public Date getLikeTime() {
		return LikeTime;
	}
	public void setLikeTime(String likeTime)  {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");//小写的mm表示的是分钟
		Date date=null;
		try {
			date = sdf.parse(likeTime);
			
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		LikeTime = date;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "LikeTable [LikeId=" + LikeId + ", UserId=" + UserId
				+ ", LikeObjectId=" + LikeObjectId + ", LikeName=" + LikeName
				+ ", LikeTime=" + LikeTime + "]";
	}

	
}
